Part Number Hot Search : 
2SK2834 L7104GD M41T62Q KS57C AD827 60125 IRF530 AD104
Product Description
Full Text Search
 

To Download IC-TW14 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  IC-TW14 ic-pmx companion chip rev a1, page 1/ 33 features complete processing for ic-pmx-based energy-harvesting absolute multiturn encoders using wiegand sensors 1 ssi multiturn data output interface to ic-pmx (spi master and singleturn hall signal i/o) uart interface for calibration and diagnosis adjustable synchronization offset and multiturn preset value based on nxp 2 s9keazn8 microcontroller extended temperature range from C40 to +125 c 1 devices and processes for energy harvesting by wiegand wire within position encoders are protected by several worldwide patents (such as ep1565755b1, us7598733, ca2506408) and require licensing by the inventors and applicants. 2 nxp is a registered trademark of nxp semiconductors applications gearless revolution counting revolution counting without batteries energy harvesting multiturn encoders absolute end-of-shaft encoders packages qfn24 4 mm x 4 mm block diagram copyright ? 2016 ic-haus http://www.ichaus.com ( s a r ) 1 2 b i t a d c p o w e r - d o w n - r e s e t i c - t w 1 4 m c l 1 m d i h o n 1 2 6 n p r e 1 5 t x s p i m a s t e r ( i / o t o i c - p m x ) u a r t ( i / o f o r d i a g n o s i s ) m t i n t e r f a c e ( s e t z e r o p o s i t i o n ) p r e s e t l o g i c r d y 4 g n d v d d 3 9 s h 1 6 r x 1 4 s c k 7 n c s 5 m r d y 2 2 3 n r e s v w p 1 0 m o s i 1 3 1 1 h o p 8 m i s o 2 1 c b d a t a c l k d a t a v a l i d c b
IC-TW14 ic-pmx companion chip rev a1, page 2/ 33 description IC-TW14 is a companion chip for ic-pmx that per- forms all the functions necessary to implement an energy-harvesting multiturn absolute encoder using an external singleturn sensor system such as ic-lg, ic-mhm, ic-mu, ic-mn, etc. the IC-TW14 also pro- vides diagnostic modes and access to ic-pmx param- eters for the design, optimization, and calibration of a complete system. without power applied, the ic-pmx uses the attached wiegand sensor and fram to count turns of the mag- net autonomously by harvesting the energy of the wiegand wire pulses. at power-on, the IC-TW14 in- terrogates the ic-pmx and determines the absolute position of the magnet. it provides this information via an ssi data stream to the external singleturn sensor for start-up calibration. during powered operation, the external singleturn sensor tracks the angular position of the magnet and the number of turns, providing out- put to the users system while the IC-TW14 monitors the turns counting and other operational conditions of the ic-pmx for faults. IC-TW14 has an operating temperature range of up to 125 c and is suitable for measuring at high speed. typical applications are highly-integrated energy-har- vesting magnetic multiturn absolute encoders. these absolute encoders can replace existing gear or bat- tery-buffered solutions.
IC-TW14 ic-pmx companion chip rev a1, page 3/ 33 contents packaging information 4 pin configuration qfn24 4mm x 4mm 4 pin functions . . . . . . . . . . . . . . . 5 package dimensions qfn24 4 mm x 4 mm 6 electrical characteristics 7 operating requirements 7 ssi multiturn interface . . . . . . . . 7 functional block diagram 8 electrical connections 10 serial communication 11 serial write . . . . . . . . . . . . . . . . . . . 11 serial read . . . . . . . . . . . . . . . . . . . 11 serial communication errors . . . . . . . . . 12 diagnostic mode 1 . . . . . . . . . . . . . . . 12 register map 13 device_id . . . . . . . . . . . . . . . . . . . 14 rev . . . . . . . . . . . . . . . . . . . . . . . 14 pmxconfig . . . . . . . . . . . . . . . . . . 14 status . . . . . . . . . . . . . . . . . . . . . 14 pramp . . . . . . . . . . . . . . . . . . . . . 15 nramp . . . . . . . . . . . . . . . . . . . . . 16 pmxwi . . . . . . . . . . . . . . . . . . . . . 16 pmxbias . . . . . . . . . . . . . . . . . . . . 16 pmxgain . . . . . . . . . . . . . . . . . . . . 16 wofs . . . . . . . . . . . . . . . . . . . . . . 16 ssi_ofs . . . . . . . . . . . . . . . . . . . . 17 ssi_dir . . . . . . . . . . . . . . . . . . . . . 17 ssi_length . . . . . . . . . . . . . . . . . . 17 ssi_msb . . . . . . . . . . . . . . . . . . . . 17 sin_ofs_cor, cos_ofs_cor . . . . . . 18 gain_cor . . . . . . . . . . . . . . . . . . . 18 auto_gain . . . . . . . . . . . . . . . . . . 18 amp_mag_loss . . . . . . . . . . . . . . . 18 temp25 . . . . . . . . . . . . . . . . . . . . . 18 temp_slope . . . . . . . . . . . . . . . . . 19 vwp_factor . . . . . . . . . . . . . . . . . 19 mode/cmd . . . . . . . . . . . . . . . . . . 19 fram_block . . . . . . . . . . . . . . . . . 20 data registers . . . . . . . . . . . . . . . . . 20 sin_raw and cos_raw registers . . . . . 21 sin and cos registers . . . . . . . . . . . . 21 sin_ofs_res and cos_ofs_res registers 21 sin_peak and cos_peak registers . . . . 21 amp . . . . . . . . . . . . . . . . . . . . . . . 21 gain . . . . . . . . . . . . . . . . . . . . . . 22 hallx_min and hallx_max registers . . . 22 pmx_angle . . . . . . . . . . . . . . . . . . 22 pmx_st . . . . . . . . . . . . . . . . . . . . 22 pmx_mt . . . . . . . . . . . . . . . . . . . . 22 ssi_st . . . . . . . . . . . . . . . . . . . . . 23 ssi_mt . . . . . . . . . . . . . . . . . . . . . 23 diag2_time . . . . . . . . . . . . . . . . . . 23 diag2_ramp . . . . . . . . . . . . . . . . . 23 diag2_vwp . . . . . . . . . . . . . . . . . . 23 vdd . . . . . . . . . . . . . . . . . . . . . . . 23 vdd_mse . . . . . . . . . . . . . . . . . . . 24 temp_raw . . . . . . . . . . . . . . . . . . 24 temp . . . . . . . . . . . . . . . . . . . . . . 24 preset pin (npre) 24 ssi multiturn interface 25 diagnostic modes 26 ssi test mode . . . . . . . . . . . . . . . . . 26 diagnostic mode 1 . . . . . . . . . . . . . . . 27 diagnostic mode 2 . . . . . . . . . . . . . . . 28 direct fram access 28 fram_block . . . . . . . . . . . . . . . . . 28 data registers . . . . . . . . . . . . . . . . . 28 direct fram access commands . . . . . . . 29 revision history 32
IC-TW14 ic-pmx companion chip rev a1, page 4/ 33 packaging information pin configuration qfn24 4mm x 4mm pin functions no. name function 1 mdi ssi multiturn data 2 mcl ssi multiturn clock 3 vdd supply voltage 4 gnd ground 5 mrdy ssi multiturn data ready 6 npre preset input (active low) 7 ncs spi to ic-pmx, chip select 8 miso spi to ic-pmx, master data input 9 sh interface ic-pmx, switch hall 10 vwp interface to ic-pmx, scaled vwc 11 hop interface ic-pmx, hall positive 12 hon interface ic-pmx, hall negative 13 mosi spi to ic-pmx, master data output 14 sck spi to ic-pmx, clock 15 tx uart serial transmit 16 rx uart serial receive 17 p17 (device test and factory calibration) 18 p18 (device test and factory calibration) 19 p19 (device test and factory calibration) 20 p20 (device test and factory calibration) 21 rdy interface ic-pmx, data ready 22 p22 (device test and factory calibration) 23 nres reset input (low active) 24 p24 (device test and factory calibration) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
IC-TW14 ic-pmx companion chip rev a1, page 5/ 33 pin functions no. name i/o function description 1 mdi digital output ssi multi-turn data output connect to multiturn data input (mdi) pin of singleturn sensor and pull-up resistor to vdd. 2 mcl digital input ssi multi-turn clock connect to multiturn clock (mcl) pin of singleturn sensor and pull-up resistor to vdd. 3 vdd supply power input 5v power input. 4 gnd supply common power supply and signal common 5 mrdy digital output ssi multi-turn data ready connect to multiturn data ready (mrdy) pin of singleturn sensor and pull-down resistor to gnd. 6 npre digital input, ac- tive low preset multi-turn position presets internal multiturn position to zero. can be connected to a push-button switch and pull-up resistor for easy calibration. must be pulled up to vdd if not used. 7 ncs digital output, active low spi chip select connect to ic-pmx ncs (pin 26) and pull-up resistor to vdd. 8 miso digital input spi master data input connect to ic-pmx miso (pin 29) and pull-down resistor to gnd. 9 sh digital output switch hall sensor connect to ic-pmx sh (pin 25) and pull-down resistor to gnd. 10 vwp analog input scaled wiegand pulse voltage connect to ic-pmx vwc via a resistive voltage divider to allow mea- suring wiegand pulse voltage without overloading the IC-TW14 adc. connect to gnd if wiegand pulse voltage measurement diagnostic is not required. 11 hop analog input hall output positive connect to ic-pmx hop (pin 23). connect to gnd if ic-pmx single- turn sensors are not used. 12 hon analog input hall output negative connect to ic-pmx hon (pin 24). connect to gnd if ic-pmx single- turn sensors are not used. 13 mosi digital output spi master data output connect to ic-pmx mosi (pin 28). 14 sck digital output spi data clock connect to ic-pmx sck (pin 27). 15 tx digital output uart serial output serial output for communication with pc for setup and diagnostics. 16 rx digital input uart serial input serial input for communication with pc for setup and diagnostics. 17 p17 reserved connect to gnd via pull-down resistor. 18 p18 reserved connect to gnd via pull-down resistor. 19 p19 reserved connect to gnd via pull-down resistor. 20 p20 reserved connect to gnd via pull-down resistor. 21 rdy digital input ic-pmx ready connect to ic-pmx rdy (pin 30) and pull-down resistor to gnd. 22 p22 reserved connect to gnd via pull-down resistor. 23 nres digital input, active low reset input must be connected to vdd through a pull-up resistor. 24 p24 reserved connect to gnd via pull-down resistor.
IC-TW14 ic-pmx companion chip rev a1, page 6/ 33 package dimensions qfn24 4 mm x 4 mm all dimensions given in mm. 4 4 top 0.40 0.50 2.80 2.80 0.24 bottom 0.90 0.10 side 2.60 2.60 3.90 3.90 r0.15 0.30 0.50 0.70 recommended pcb-footprint dra_qfn24-4x4-8_pack_1, 10:1 all dimensions given in mm. tolerances of form and position according to jedec mo-220.
IC-TW14 ic-pmx companion chip rev a1, page 7/ 33 electrical characteristics operating conditions: vdd = 4.5...5.5 v, tj = -40 c...125 c item symbol parameter conditions unit no. min. typ. max. total device 101 v(vdd) permissible supply voltage 4.5 5.0 5.5 v 102 i(vdd) supply current 12 ma bias, power on 201 nporon power-on-reset threshold vdd increasing voltage at vdd 2.65 v 202 nporoff power-off reset threshold vdd decreasing voltage at vdd 2.61 v 203 nporhys hysteresis 40 mv 204 vbg bandgap voltage 1.16 v operating requirements: ssi multiturn interface item symbol parameter conditions unit no. min. max. i001 tpu(mrdy) start-up time nres = 0, rdy = 1, no error conditions; default startup 8 ms startup with wiegand module excitation 50 ms i002 t c permissible clock period 3.3 13.3 s i003 t l1 , t l2 clock signal hi/lo level duration 1.2 s i004 t rq data request delay 1.2 s i005 t d data valid after rising edge of mcl 0.3 1.2 s i006 t out ssi timeout 15 25 s figure 1: multiturn (ssi) interface timing t d data t c data t out t l2 t rq data data data mcl mdi t l1
IC-TW14 ic-pmx companion chip rev a1, page 8/ 33 functional block diagram figure 2: IC-TW14 functional block diagram the IC-TW14 performs all the functions necessary to interface the ic-pmx to a singleturn absolute sensor system such as ic-lg, ic-mhm, ic-mu, ic-mn, etc. to provide a complete energy-harvesting multiturn ab- solute encoder, as shown in figure 2 . at power-up, the tw14 calculates the ic-pmx magnets absolute position and provides this information to the singleturn absolute sensor for initialization via the multiturn inter- face. the signal names in figure 2 refer to IC-TW14 registers. see register map on page 13 for information on these registers. at power-up, the IC-TW14 interrogates the ic-pmx and reads its multiturn count. it also reads the ic-pmxs singleturn hall sensors (signals hop and hon) via a built-in 12-bit adc to determine the angle of the ic-pmx magnet. the singleturn hall sensor readings are combined to give values proportional to the sine and cosine of the magnet angle. see position of the hall sensors and the sensor signal processing in the ic-pmx datasheet for more information. these values are available in registers sin_raw and cos_raw respectively. the raw sine and cosine signal values are conditioned to remove offsets and equalize amplitudes. the condi- tioned signal values are available in registers sin and cos respectively. next, a calculation determines the ic-pmx magnet an- gle (pmx_angle) based on the sin and cos values. this angle is concatenated with the 32-bit multiturn count read from the ic-pmx at power-up and corrected for the wiegand offset (wofs) to produce the com- plete multiturn absolute position. this mutiturn absolute position is available in registers pmx_mt and pmx_st. a fnal calculation corrects the multiturn absolute posi- tion as required for the singleturn absolute sensor zero location (ssi_ofs) and rotation direction (ssi_dir). this corrected position is available in registers ssi_mt and ssi_st. finally, the IC-TW14 assembles the ssi data packet as required for the singleturn absolute sensor. the length of the data packet (ssi_length) and the starting bit of the multiturn position (ssi_msb) must be set to match the requirements of the singleturn absolute sensor and hop hon adc sin_raw cos_raw signal conditioning sin cos sin_ofs_cor cos_ofs_cor gain_cor sin_ofs_res cos_ofs_res sin_peak cos_peak amp calc. pmx_angle wofs (multiturn count) pmx_st pmx_mt ssi_dir ssi_ofs pos. calc. output position calculation ssi_st ssi_mt ssi_length ssi_msb multiturn interface mdi mcl mrdy ic-pmx interface (spi) ncs sck miso mosi npre preset pramp nramp pmxwi pmxbias temp25 temp_slope temp temp. diode temp_raw temperature calculation vdd bandgap reference voltage calculation vdd_mse diagnostics serial interface tx rx vwp adc power-up logic
IC-TW14 ic-pmx companion chip rev a1, page 9/ 33 the application. when this packet is ready (mrdy high), the singleturn absolute sensor clocks the data out of the IC-TW14s multiturn ssi interface. a serial port allows access to internal registers and diag- nostics for system setup, calibration, and troubleshoot- ing. wiegand pulse voltage and angle, current ramp duration, wiegand sensor misalignment, and magnetic feld strength at the four ic-pmx singleturn hall sensors can all be measured to ensure proper operation. the npre pin can be connected to a pushbutton to allow one-button calibration of system multiturn origin (zero) position. when npre is active the tw14 sets ssi_off to the correct value so that the multiturn ab- solute position output to the singleturn absolute sensor (ssi_mt and ssi_st) is zero. a built-in temperature diode provides the die tempera- ture of the IC-TW14 and a built-in bandgap reference provides the value of the supply voltage for diagnostics and testing.
IC-TW14 ic-pmx companion chip rev a1, page 10/ 33 electrical connections figure 3: typical IC-TW14 electrical connections the IC-TW14 must be connected to an ic-pmx ener- gy-harvesting multiturn counter/encoder and a single- turn absolute sensor such as the ic-mhm 14-bit abso- lute angle hall encoder for proper operation. typical connections are shown in figure 3 . other components required by the ic-pmx (wiegand module, fram, etc.) and the singleturn sensor (eep- rom, etc.) must also be connected to make an oper- ational system. these additional components are not shown in figure 3 . to work properly with the IC-TW14, the ic-pmx must be confgured to use an fram (c0 = 0) and operate in period counter mode (c1 = 0). this is accomplished by connecting ic-pmx pins c0 and c1 to ground as shown. c2 and c3 should be connected as required by the application. see self-sustained operation mode selection in the ic-pmx datasheet for more information on the confguration inputs. a small push-button switch can be connected to the npre input as shown to provide a zeroing function for system calibration. this allows the multiturn position to be set to zero during encoder installation to synchronize the encoder with the external system. to enable the IC-TW14 to measure the wiegand pulse voltage without overloading or damaging the adc, a resistive voltage divider must be used. connect this di- vider as shown between ic-pmx pin vwc and IC-TW14 pin vwp. the resistor values should be chosen such that the voltage at IC-TW14 pin vwp never exceeds vdd. if the wiegand pulse voltage measurement diag- nostic feature of the IC-TW14 is not required, IC-TW14 pin vwp should be connected directly to gnd. note also that the series combination of the two resis- tors loads cvwc which reduces the harvested energy available to the ic-pmx when external power is not available. this voltage divider is only required for diag- nostics and can be removed for series production. connect the ssi multiturn position output of the IC-TW14 to the multiturn interface of the singleturn sen- sor as required by the sensor. this allows the singleturn sensor to synchronize itself with the multiturn position calculated by the IC-TW14 after power-up. connect the serial port to a host pc using an ic-mb3u-i2c adapter for confguration of the IC-TW14 and ic-pmx using the free graphical user interface (gui) software. pull-up and pull-down resistors are recommended as shown. the six reserved pins must also be grounded using a pull-down resistor as shown. if the ic-pmx singleturn sensors are not used, hop and hon should be connected directly to gnd. 5v 5v npre IC-TW14 mdi mcl mrdy vdd gnd nres c0 c1 ic-pmx ncs sck miso mosi sh rdy vcc gnd hop hon ncs sck miso mosi sh rdy hop hon preset 5v 2x 4.7k 5v multiturn position output (ssi) cvwc vwc vwp uart tx uart rx serial port 5v 2x 100k 3x 100 k 5v 100 k 100k 5v p17 p18 p19 p20 p22 p24 100 k
IC-TW14 ic-pmx companion chip rev a1, page 11/ 33 serial communication the IC-TW14 contains a universal asynchronous reciev- er/transmitter (uart) for serial communication with an external pc for confguration and diagnostics. commu- nication is full-duplex, 9600 baud, non-return-to-zero (nrz) using 1 start bit, 8 data bits, and 1 stop bit. serial write the IC-TW14 serial write command contains 9 ascii characters formatted as shown in table 4 . serial write (:waadddd!) character description : packet start w write command aa address byte (hex) dddd data word (hex) ! packet end table 4: IC-TW14 serial write the address byte and data word must be specifed as hexadecimal values using upper-case characters. see register map on page 13 for more information on available registers and addresses. if the write was successful, the IC-TW14 responds with :gwaadddd!! where aa and dddd are the address byte and data word written. for example, to set the length (number of bits) of the ssi data packet used to initialize the external singleturn sensor to 17, write 0x0011 to IC-TW14 address 0x18 by sending :w180011! the IC-TW14 responds with :gw180011! if the write command fails because aa is an undefned or non-writeable address, the IC-TW14 responds with :fwaadddd! where aa and dddd are the failed address byte and data word. see register map on page 13 for more information on writeable registers and addresses. serial read the IC-TW14 serial read command contains 5 ascii characters formatted as shown in table 5 . serial read (:raa!) character description : packet start r read command aa address byte (hex) ! packet end table 5: IC-TW14 serial read the address byte must be specifed as a hexadecimal value using upper-case characters. see register map on page 13 for more information on available reg- isters and addresses. if the read was successful, the IC-TW14 responds with :graadddd! where dddd is the data word read from address aa. for example, to read the device_id register of the IC-TW14 at address 0x00, send :r00! the IC-TW14 responds with its device id (14) :gr000e01! if the read command fails because aa is an undefned address, the IC-TW14 responds with :fraa! where aa is the undefned address. see register map on page 13 for more information on valid register addresses.
IC-TW14 ic-pmx companion chip rev a1, page 12/ 33 serial communication errors if the serial read or write command contains invalid hexadecimal digits or is the wrong length, the IC-TW14 responds with :exdd! where x is r or w for a read or write command (re- spectively) and dd is the invalid command data (which may be any length). valid hexadecimal digits are 1 C 9 and a C f. a valid read command contains exactly 5 characters; a valid write command contains exactly 9 characters. if the character after the packet start character (:) is neither r nor w, or if lower-case characters are used in the command packet, the IC-TW14 responds with :udd! where dd is the command data (which may be any length). diagnostic mode 1 diagnostic mode 1 is used to measure the wiegand pulse angle, voltage, and magnetic feld strength when a wiegand pulse occurs. diagnostic mode 1 is initiated by writing 1 to mode/cmd (see page 19 for more in- formation). see diagnostic modes on page 26 for information on using diagnostic mode 1. with diagnostic mode 1 active, a packet containing the wiegand pulse angle, voltage, and magnetic feld strength is returned by the uart whenever a wiegand pulse occurs. diagnostic mode 1 packet (:pvvvvhhhhaaa!) character description : packet start p wiegand pulse point (j, k, l, or m) vvvv wiegand pulse voltage (hex mv) hhhh magnetic field strength (hex units of 0.1 ka/m) aaa wiegand pulse angle (hex degrees) ! packet end table 6: diagnostic mode 1 packet see figure 15 and table 8 in ic-pmx application note 2 for the defnitions of the four wiegand pulse points (j, k, l, and m). the wiegand pulse voltage (vvvv) is measured at IC-TW14 pin vwp, which must be connected to ic-pmx pin vwc via a voltage divider to avoid overdriving vwp. the wiegand pulse voltage is a positive hexadecimal value in mv. the magnetic feld strength (hhhh) when the wiegand pulse occurs is measured by reading ic-pmx single- turn hall sensors h1 and h3 since the ic-pmx phase sequence hall sensors (h4 and h5) cannot be read directly. the magnetic feld strength is a hexadeci- mal 16-bit 2s-complement value in units of 0.1 ka/m equal to h1 if ic-pmx confguration input c2 is low, and (h1 C h3) if c2 is high. see self-sustained opera- tion mode selection in the ic-pmx datasheet for more information. the wiegand pulse angle (aaa) is a positive hexadeci- mal value in degrees (0x000 C 0x167). for example, if a wiegand pulse m occurs at 23 with a voltage of 7.46 volts, a vwp voltage divider of 1/3, and a feld strength of 10 ka/m at 27 c, the IC-TW14 sends :m09b60064017! if the IC-TW14 is busy sending a diagnostic mode 1 packet when a wiegand pulse occurs, it sends :ed! following the current packet. this indicates that the data from the second wiegand pulse has been lost.
IC-TW14 ic-pmx companion chip rev a1, page 13/ 33 register map the IC-TW14 contains a group of 16-bit registers that are used for all communication between the host pro- cessor and the tw14, as shown in tables 7 and 8 . r/w/f access indicates IC-TW14 confguration param- eters that can be stored in the fram connected to the ic-pmx in addition to being readable and writeable. address register name description access 0x00 device_id IC-TW14 device id read 0x01 rev IC-TW14 revision read 0x02 pmxconfig ic-pmx confguration read 0x03 status status of IC-TW14 read 0x10 pramp ic-pmx positive current ramp confguration (0 C 255) r/w/f 0x11 nramp ic-pmx negative current ramp confguration (0 C 255) r/w/f 0x12 pmxwi wi (0 C 3) r/w/f 0x13 pmxbias ic-pmx bias parameter (0 C 15) r/w/f 0x14 pmxgain ic-pmx singleturn hall amplifer gain (0 C 7) r/w/f 0x15 wofs angular offset between ic-pmx and wiegand sensor in degrees (0 C 359) r/w/f 0x16 ssi_ofs angular offset between ic-pmx and singleturn sensor in degrees (0 C 359) r/w/f 0x17 ssi_dir rotation direction of external singleturn sensor (0 C 1) r/w/f 0x18 ssi_length ssi data length (0 C 31) r/w/f 0x19 ssi_msb msb of the ssi data (0 C 31) r/w/f 0x1a sin_ofs_cor sine calculation offset correction r/w/f 0x1b cos_ofs_cor cosine calculation offset correction r/w/f 0x1c gain_cor gain correction r/w/f 0x1d auto_gain enables automatic gain control on ic-pmx hall gain r/w/f 0x1e amp_mag_loss hall magnet loss amplitude in units of 0.1 ka/m r/w/f 0x1f temp25 temperature voltage at 25 c in mv r/w/f 0x20 temp_slope slope of temperature voltage ( 32,767) r/w/f 0x21 vwp_factor voltage divider factor between ic-pmx vwc and IC-TW14 vwp r/w/f 0x30 mode/cmd mode/command register r/w 0x31 fram_block fram data block to read or write (direct fram access) r/w 0x32 data.0 data register 0 r/w 0x33 data.1 data register 1 r/w 0x34 data.2 data register 2 r/w 0x35 data.3 data register 3 r/w 0x40 sin_raw sine calculation without correction in units of 0.1 ka/m read 0x41 cos_raw cosine calculation without correction in units of 0.1 ka/m read 0x42 sin sine value after correction in units of 0.1 ka/m read 0x43 cos cosine value after correction in units of 0.1 ka/m read 0x44 sin_ofs_res sine calculation offset residue in units of 0.01 ka/m read 0x45 cos_ofs_res cosine calculation offset residue in units of 0.01 ka/m read 0x46 sin_peak peak sine amplitude after correction in units of 0.01 ka/m read 0x47 cos_peak peak cosine amplitude after correction in units of 0.01 ka/m read 0x48 amp singleturn hall sensors amplitude sin 2 + cos 2 in units of 0.1 ka/m read 0x49 gain actual ic-pmx hall sensor gain setting (0 C 7) read 0x4a hall0_min singleturn hall sensor h0 minimum magnetic field in units of 0.1 ka/m read 0x4b hall1_min singleturn hall sensor h1 minimum magnetic field in units of 0.1 ka/m read 0x4c hall2_min singleturn hall sensor h2 minimum magnetic field in units of 0.1 ka/m read 0x4d hall3_min singleturn hall sensor h3 minimum magnetic field in units of 0.1 ka/m read 0x4e hall0_max singleturn hall sensor h0 maximum magnetic field in units of 0.1 ka/m read 0x4f hall1_max singleturn hall sensor h1 maximum magnetic field in units of 0.1 ka/m read 0x50 hall2_max singleturn hall sensor h2 maximum magnetic field in units of 0.1 ka/m read 0x51 hall3_max singleturn hall sensor h3 maximum magnetic field in units of 0.1 ka/m read table 7: IC-TW14 register map
IC-TW14 ic-pmx companion chip rev a1, page 14/ 33 address register name description access 0x52 pmx_angle calculated hall singleturn angle in degrees (0 C 359) read 0x53 pmx_st corrected hall sensor singleturn angle in degrees (0 C 359) read 0x54 pmx_mt[15:0] ic-pmx multiturn count least signifcant word (0 C 65,535) read 0x55 pmx_mt[31:16] ic-pmx multiturn count most signifcant word (0 C 65,535) read 0x60 ssi_st singleturn angle in degrees for external singleturn sensor (0 C 359) read 0x61 ssi_mt[15:0] multiturn count lsw for external singleturn sensor (0 C 65,535) read 0x62 ssi_mt[31:16] multiturn count msw for external singleturn sensor (0 C 65,535) read 0x80 diag2_time diagnostic mode 2 wiegand pulse time in s read 0x81 diag2_ramp diagnostic mode 2 current ramp time in s read 0x82 diag2_vwp diagnostic mode 2 scaled wiegand pulse voltage read 0x90 vdd IC-TW14 v dd in mv read 0x91 vdd_mse IC-TW14 v dd mean squared noise in mv 2 read 0x92 temp_raw IC-TW14 raw temperature diode voltage read 0x93 temp IC-TW14 temperature in c read table 8: IC-TW14 register map (continued) device_id device_id is a read-only register containing the IC-TW14 device (chip) id (0x0e = 14) and version for identifcation purposes. device_id (0x00) value description 0x0e00 IC-TW14 evaluation samples table 9: IC-TW14 device id rev rev is a read-only register containing the IC-TW14 device (chip) revision level. rev (0x01) value description 0x0001 IC-TW14 revision (initial release) table 10: IC-TW14 revision pmxconfig pmxconfig is a read-only register containing the ic-pmx revision and the state of the four confgura- tion pins of the ic-pmx. these values are read by the IC-TW14 from ic-pmx address 0x07 and the ic-pmx read pos command address 0x0f (respectively) at startup. pmxconfig (0x02) bit name description 15:12 C reserved (zero) 11 c3 ic-pmx c3 pin state 10 c2 ic-pmx c2 pin state 9 c1 ic-pmx c1 pin state 8 c0 ic-pmx c0 pin state 7:0 rev ic-pmx revision table 11: ic-pmx confguration see self-sustained operation mode selection and po- sition data in period counter mode with a data process- ing fram and fram access in the ic-pmx datasheet for more information. see spi slave interface in the ic-pmx datasheet for more information on the ic-pmx revision. status status is a read-only register containing bits that indi- cate the status of the IC-TW14. status bits are active as long as the corresponding condition is true. status (0x03) bit name description 15 C 14 C reserved (zero) 13 cf ic-pmx confguration fault 12 npre npre input active 11 nossi ssi multiturn data not ready 10 stop IC-TW14 stopped 9 mtm multiturn position mismatch 8 hsc hall signals clipped 7 mlf magnet lost fault 6 hgw hall gain warning 5 fad fram access denied 4 fcf fram confguration fault 3:2 eflag fram error fag bits 1 pnr ic-pmx not ready 0 sync IC-TW14 busy synchronizing with ic-pmx table 12: status register status.cf = 1 indicates that the ic-pmx is not cor- rectly confgured for the IC-TW14. specifcally, sta- tus.cf = 1 if ic-pmx pin c0 or pin c1 are high. c0 and c1 must both be low for use with the IC-TW14. status.cf = 1 also sets status.stop = 1. status.npre = 1 indicates that the IC-TW14s npre input is low (active). see preset pin (npre) on page 24 for more information.
IC-TW14 ic-pmx companion chip rev a1, page 15/ 33 status.nossi = 1 indicates that the IC-TW14 is not ready to provide multiturn position data over the ssi multiturn interface. during normal operation, this bit is the logical inverse of the state of IC-TW14 pin mrdy. status.stop = 1 indicates that the IC-TW14 has stopped working because status.cf = 1, sta- tus.eflag =/ 0, status.fcf = 1, or mode 1 or 2 (di- agnostic mode 2), mode 30 (mrdy low), 31 (mrdy high), or 40 (ssi test mode) is active. to clear this con- dition re-synchronize the IC-TW14 using the resync command (8). status.mtm = 1 indicates that the multiturn position as tracked by the IC-TW14 does not match the multiturn position stored in the fram. status.hsc = 1 indicates that the ic-pmx singleturn hall signals are being clipped. this condition occurs if pmxgain is too large or the magnetic feld is too strong. status.mlf = 1 indicates that the singleturn hall sen- sor signal amplitude is too low, probably because the magnet is too far away from the ic-pmx. specifcally, status.mlf = 1 if amp < amp_mag_loss. see amp_mag_loss on page 18 for more information status.hgw = 1 indicates that the ic-pmx hall gain value is wrong but cannot be changed. this only occurs when the auto-gain feature is disabled and the ic-pmx hall gain value is wrong. the current ic-pmx hall gain value is available in the gain register (0x49). status.fad = 1 indicates that a direct fram access command (21 C 25) failed, possibly because an illegal address was specifed or the ic-pmx rdy pin indicated low vdd. see direct fram access on page 28 for more information. a status.fad = 1 condition can be cleared using a reset (7) or resync (8) command. see mode/- cmd on page 19 for more information. status.fcf = 1 indicates that there is a problem with the IC-TW14 confguration data stored in the fram and that the IC-TW14 is disabled (status.stop = 1). in this case, new confguration data must be written to the fram using the write command (4). see mode/- cmd on page 19 for more information. status.eflag are the fram error fag bits read from ic-pmx 0x005[7:6]. status.eflag (0x03 bits 3:2) value description 0 no fault 1 counter over/underfow fault 2 uncorrectable error correction code fault 3 incomplete write fault table 13: multiturn position read errors if status.eflag = 0, the multiturn position value read from the fram is valid. if status.eflag =/ 0, the multiturn position value read from the fram is invalid, the counter in the fram is disabled, and the IC-TW14 is stopped (status.stop = 1). a status.eflag =/ 0 condition can only be cleared by over-writing the fram contents. see direct fram access on page 28 for more information. status.pnr = 1 indicates that the ic-pmx is not ready (ic-pmx pin rdy low). this may be because vcc is less than vddok (ic-pmx spec. item 705). status.sync = 1 indicates that the IC-TW14 is in the process of synchronizing itself with the ic-pmx. this is true right after power-up or a resync (8) com- mand. when the synchronization is complete, sta- tus.sync = 0. this is the condition during normal operation of the IC-TW14. pramp pramp is a read/write register that sets the ic-pmx ramp parameters used to activate a positive current ramp. pramp (0x10) bits description 15:8 reserved (must be zero) 7:0 ic-pmx ramp(7:0) table 14: pramp register the lsb of the pramp register is written to ic-pmx address 0x01 when a positive current ramp is re- quired. see wiegand module excitation in the ic-pmx datasheet for more information.
IC-TW14 ic-pmx companion chip rev a1, page 16/ 33 nramp nramp is a read/write register that sets the ic-pmx ramp parameters used to activate a negative current ramp. nramp (0x11) bits description 15:8 reserved (must be zero) 7:0 ic-pmx ramp(7:0) table 15: nramp register the lsb of the nramp register is written to ic-pmx address 0x01 when a negative current ramp is re- quired. see wiegand module excitation in the ic-pmx datasheet for more information. pmxwi pmxwi is a read/write register used to set the ic-pmx wi parameter used to select the switched current ramp maximum current. the pmxwi register value is written to ic-pmx address 0x02[1:0] on startup, when diag- nostic mode 2 is initiated, when a reset or resync command is executed, or when status.pnr changes from 1 to 0. see spi slave interface in the ic-pmx datasheet for more information. pmxwi (0x12) bits description 15:2 reserved (must be zero) 1:0 ic-pmx register 0x02(1:0) (wi) value table 16: pmxwi register to change the wi value in the ic-pmx, write the desired value to pmxwi, write the confguration to fram using the write command (4), and reset the IC-TW14 using reset command (7). on startup, the new pmxwi value is written to the ic-pmx. see wiegand module excitation in the ic-pmx datasheet for more information on wi. pmxbias pmxbias is a read/write register used to set the ic-pmx bias value. the least signifcant four bits of the pmxbias register are written to ic-pmx address 0x02[7:4] on startup, when diagnostic mode 2 is initi- ated, when a reset or resync command is exe- cuted, or when status.pnr changes from 1 to 0. see spi slave interface in the ic-pmx datasheet for more information. pmxbias (0x13) bits description 15:4 reserved (must be zero) 3:0 ic-pmx register 0x02(7:4) (bias) value table 17: pmxbias register to change the ic-pmx bias value, write the desired value to pmxbias, write the confguration to fram using the write command (4), and reset the IC-TW14 using the reset command (7). on startup, the new bias value is written to the ic-pmx. see device cali- bration and system diagnosis in the ic-pmx datasheet for more information on bias. pmxgain pmxgain is a read/write register used to set the ic-pmx singleturn hall amplifer gain. the gain value is written to ic-pmx address 0x00[7:5] on startup, when a reset or resync command is executed, or when status.pnr changes from 1 to 0. see spi slave interface in the ic-pmx datasheet for more information. pmxgain (0x14) bits description 15:3 reserved (must be zero) 2:0 ic-pmx gain(2:0) table 18: pmxgain register wofs wofs is a read/write register containing the angular offset of the wiegand module to the ic-pmx h0/h2 axis. wofs (0x15) value description 0 C 359 wiegand module offset in degrees 360 C 65,535 reserved (do not use) table 19: wofs register see wiegand offset and misalignment in ic-pmx application note 2 for more information. in general, the wiegand module misalignment must be measured on every unit and then entered into wofs to account for production and assembly tolerances.
IC-TW14 ic-pmx companion chip rev a1, page 17/ 33 ssi_ofs ssi_ofs is a read/write register containing the angular difference (offset) between the ic-pmx 0 point and the point where the multiturn data provided over the ssi multiturn interface is expected to roll over. ssi_ofs (0x16) value description 0 C 359 singleturn sensor offset in degrees 360 C 65,535 reserved (do not use) table 20: ssi_ofs register ssi_ofs is used to calculate the multiturn position sent to the external singleturn sensor via the IC-TW14s ssi multiturn interface. in applications where the external singleturn absolute sensor uses the same magnet as the ic-pmx, ssi_ofs can be set based on the geome- try of the application. in applications where the external singleturn absolute sensor is mechanically independent of the ic-pmx/IC-TW14 turns counter, use the IC-TW14 npre input to set ssi_ofs as explained in preset pin (npre) on page 24 . ssi_dir ssi_dir is a read/write register used to match the ro- tation direction of the multiturn data provided over the ssi multiturn interface to the rotation direction of the external singleturn absolute sensor. ssi_dir (0x17) value description 0 positive rotation is counterclockwise 1 positive rotation is clockwise 2 C 65,535 reserved (do not use) table 21: external singleturn sensor rotation direction if ssi_dir = 0, counterclockwise rotation of the mag- net as viewed when looking at the top of the ic-pmx is positive (increasing ssi_mt and ssi_st values). if ssi_dir = 1, clockwise rotation of the magnet as viewed when looking at the top of the ic-pmx is posi- tive. set ssi_dir to match the rotation direction of the external singleturn absolute system for proper initializa- tion and synchronization. ssi_length ssi_length is a read/write register used to specify the length (number of bits) of the ssi data sent to the external singleturn absolute sensor using the ssi multi- turn interface. ssi_length (0x18) value description 0 C 31 number of bits of ssi data 32 C 65,535 reserved (do not use) table 22: ssi data length ssi_length must be set to match the connected sin- gleturn absolute sensor. in general, ssi _ length = multiturn bits + synchronization bits for example, if 16 bits of multiturn count and 1 sync bit are required, set ssi_length = 17. see ssi multi- turn interface on page 25 for more information. ssi_msb ssi_msb is a read/write register used to specify the starting (most signifcant) bit of the ssi data sent to the external singleturn absolute sensor for initialization. ssi_msb (0x19) value description 0 C 31 starting bit of ssi data 32 C 65,535 reserved (do not use) table 23: ssi data msb ssi_msb must be set to match the connected single- turn absolute sensor. in general, ssi _ msb = multiturn bits ? 1 for example, if 16 bits of multiturn count and 1 sync bit are required, set ssi_msb = 15. see ssi multiturn interface on page 25 for more information.
IC-TW14 ic-pmx companion chip rev a1, page 18/ 33 sin_ofs_cor, cos_ofs_cor sin_ofs_cor and cos_ofs_cor are read/write registers containing the offset correction for the sine and cosine values (respectively) calculated from read- ing the singleturn hall sensors in the ic-pmx. sin_ofs_cor (0x1a), cos_ofs_cor (0x1b) value description 32,767 sin/cos calculation offset corrections table 24: ofs_cor registers sin_ofs_cor and coc_ofs_cor are 2s-comple- ment numbers used to calculate sin and cos. see sin and cos registers on page 21 for more information. gain_cor gain_cor is a read/write register containing the gain correction for the sine value calculated from reading the singleturn hall sensors in the ic-pmx. gain_cor (0x1c) value description 128 sine calculation gain correction table 25: gain_cor register gain_cor is a 2s-complement number calculated as gain _ cor = int ( desired sine gain 16) which is used to calculate sin and cos. see sin and cos registers on page 21 for more information. gain_cor should be adjusted so that the ratio of sin_peak to cos_peak is a close to 1 as possible. see sin_peak and cos_peak registers on page 21 for more information. note that a negative gain correction value inverts the sine signal which reverses the rotation direction of pmx_angle relative to the magnet rotation direction. auto_gain auto_gain is a read/write register used to enable automatic gain control on ic-pmx hall gain. auto_gain (0x1d) value description 0 automatic gain control disabled 1 automatic gain control enabled 2 C 65,535 reserved (not used) table 26: auto_gain register it is recommended to always enable the automatic gain control (auto_gain = 1). amp_mag_loss amp_mag_loss is a read/write register used to set the amp value below which it is assumed the magnet is no longer within proper range of the ic-pmx. amp_mag_loss (0x1e) value description 0 C 65,535 magnet lost amplitude in units of 0.1 ka/m table 27: amp_mag_loss register an amp value less than amp_mag_loss generates a magnet lost fault (status.mlf = 1) and an ssi mul- titurn data not ready condition (status.nossi = 1). see status on page 14 for more information. this condition also sets the mrdy pin low and disables the ssi multiturn interface to signal the fault to the external singleturn absolute sensor. temp25 temp25 is a read/write register containing the voltage of the IC-TW14s temperature diode at 25 c. temp25 (0x1f) value description 0 C 65,535 temperature voltage at 25 c in mv table 28: temp25 register temp25 is a positive number equal to the tempera- ture diodes voltage at 25 c in millivolts. it is used by the IC-TW14 to calculate the temperature reported in the temp register. see temp on page 24 for more information. the nominal value of temp25 is 1370. temp25 can be calibrated by measuring the die temperature of the IC-TW14 using an independent thermometer at two different temperatures, t 1 and t 2 and recording the corresponding temp_raw 1 and temp_raw 2 values and the vdd register value. temp25 is then calculated as temp 25 = vdd 131072 ( t 1 ? 25) temp _ raw 2 ? ( t 2 ? 25) temp _ raw 1 t 1 ? t 2 for example, suppose that at 30 c temp_raw = 0x8f3d = 36669, at 80 c temp_raw = 0x7ef5 = 32501, and vdd = 4895 mv. then temp25 should be set to 4895 131072 (30 ? 25) 32501 ? (80 ? 25) 36669 30 ? 80 = 1385
IC-TW14 ic-pmx companion chip rev a1, page 19/ 33 temp_slope temp_slope is a read/write register containing the slope of the IC-TW14s temperature diode voltage with respect to temperature. temp_slope (0x20) value description 32,767 temperature voltage slope table 29: temp_slope register the temp_slope register value is a 2s complement number calculated as temp _ slope = int ( slope [ mv / ? c ] 192) it is used by the IC-TW14 to calculate the temperature reported in the temp register. see temp on page 24 for more information. for example, the typical temperature slope of the temperature diode is C3.266 millivolts per c, so temp_slope should be set to int ( ? 3.266 192) = ? 627 = 0 xfd 8 d temp_slope can be calibrated by measuring the die temperature of the IC-TW14 using an indepen- dent thermometer at two different temperatures, t 1 and t 2 and recording the corresponding temp_raw 1 and temp_raw 2 values and the vdd register value. temp_slope is then calculated as temp _ slope = 268, 435, 456 vdd t 1 ? t 2 temp _ raw 1 ? temp _ raw 2 for example, suppose that at 30 c temp_raw = 0x8f3d = 36669, at 80 c temp_raw = 0x7ef5 = 32501, and vdd = 4895 mv. then temp_slope should be set to 268, 435, 456 4895 30 ? 80 36669 ? 32501 = ? 658 this indicates an actual temperature slope of C658/192 = C3.427 mv/ c. vwp_factor vwp_factor is a read/write register used to record the value of the resistive voltage divider between ic-pmx pin vwc and IC-TW14 pin vwp. vwp_factor (0x21) value description 0 C 65,535 scaled voltage divider ratio table 30: vwp_factor register vwp_factor is calculated as vwp _ factor = int 256 voltage divider ratio this value is not used directly by the IC-TW14, but al- lows a connected computer to properly calculate the wiegand pulse voltage when using diag1 and diag2 modes. for example, if the voltage divider ratio is 1/3, vwp_factor = 768 = 0x0300. mode/cmd mode/cmd is a read/write register used to initiate di- agnostic modes or execute commands. mode/cmd (0x30) name value description normal 0 normal operation diag1 1 diagnostic mode 1 diag2p 2 diagnostic mode 2 (positive ramp) diag2n 3 diagnostic mode 2 (negative ramp) write 4 write IC-TW14 confg. to fram read 5 read IC-TW14 confg. from fram C 6 reserved (do not use) reset 7 reset IC-TW14 resync 8 re-synchronize IC-TW14 to ic-pmx clear 9 clear min/max values C 10 C 20 reserved (do not use) f_data_w 21 fram data write f_data_r 22 fram data read f_mt_w 23 fram multiturn position write f_mt_r 24 fram multiturn position read f_set_mt 25 set fram multiturn position C 26 C 29 reserved (do not use) mrdy_lo 30 set IC-TW14 mrdy pin low mrdy_hi 31 set IC-TW14 mrdy pin high C 32 C 39 reserved (do not use) ssi_test 40 ssi test mode C 41 C 65,535 reserved (do not use) table 31: mode/cmd register at startup, mode/cmd = 0 (normal operation). to ini- tiate a diagnostic mode or execute a command, write the appropriate value to the mode/command register. to cancel a diagnostic mode and return to normal op- eration, re-synchronize the IC-TW14 to the ic-pmx by writing 8 to mode/cmd. when a read (5), write
IC-TW14 ic-pmx companion chip rev a1, page 20/ 33 (4), reset (7), resync (8), or clear (9) command is complete, mode/cmd is set to normal (0) by the IC-TW14. the diag1 command (1) initiates diagnostic mode 1, which is used to measure the wiegand pulse angle, voltage, and magnetic feld strength when a wiegand pulse occurs. with diagnostic mode 1 active, the hall sensor magnetic feld level and the wiegand pulse an- gle are returned via the uart whenever a wiegand pulse occurs. see diagnostic modes on page 26 for information on using diagnostic mode 1. to terminate diagnostic mode 1, re-synchronize the IC-TW14 to the ic-pmx by writing 8 to mode/cmd. the diag2p (2) and diag2n (3) commands initiate di- agnostic mode 2, which is used to analyze current ramp operation. initiate diagnostic mode 2 by writing 2 (for a positive ramp) or 3 (for a negative ramp) to mode/- cmd. in diagnostic mode 2, the wi and pmxbias values are frst written to the ic-pmx, the specifed current ramp is initiated, and the wiegand pulse time, current ramp duration time, and peak pulse voltage are measured (wiegand pulse voltage is set to zero if no pulse occurs). these values are then available in the diag2_time (0x80), diag2_ramp (0x81), and diag2_vwp (0x82) registers respectively. when the ramp is fnished, mode/cmd is set to normal (0) by the IC-TW14. see diagnostic modes on page 26 for information on using diagnostic mode 2. diagnostic mode 2 sets status.stop and sta- tus.nossi. to clear this condition, re-synchronize the IC-TW14 using the resync command (8). the write command (4) writes the values of the IC-TW14 confguration parameters (r/w/f access reg- isters) to fram using fram feedthrough mode in the ic-pmx. see fram access in the ic-pmx datasheet and table 7 for more information. the read command (5) reads the stored IC-TW14 con- fguration parameter values from fram using fram feedthrough mode in the ic-pmx and updates the r/w/f access registers. see fram access in the ic-pmx datasheet and table 7 for more information. the reset command (7) is used to reset the IC-TW14. this is equivalent to when power is applied at startup. the resync command (8) is used to re-synchronize the IC-TW14 to the ic-pmx. this is equivalent to the reset command except that the IC-TW14 confgura- tion parameters are not re-loaded from fram. the clear command (9) is used to clear the read-only hallx_min andhallx_max registers. when this com- mand is executed, the value of all 8 min/max registers is set to zero. commands 21 C 25 provide direct access to the fram connected to the ic-pmx. see direct fram ac- cess on page 28 for more information on these com- mands. the mrdy_lo command (30) sets the mrdy pin of the IC-TW14 low. this indicates to the external single- turn sensor that the IC-TW14 is not ready. mrdy_lo also sets status.stop. the mrdy_hi command (31) sets the mrdy pin of the IC-TW14 high and also sets status.stop. this command is for diagnostic use only and does not indi- cate that the IC-TW14 is ready to supply its absolute position. ssi_test mode (40) is used to test the ssi multiturn interface by supplying a static value for transmission. see diagnostic modes on page 26 for more infor- mation. to terminate ssi_test mode, re-synchronize the IC-TW14 to the ic-pmx using the resync com- mand (8). fram_block fram_block is a read/write register used with com- mands 21 C 25 for direct fram access . see mode/- cmd on page 19 and direct fram access on page 28 for more information. data registers data.0 C data.3 are read/write registers used with commands 21 C 25 for direct fram access. see mode/cmd on page 19 and direct fram access on page 28 for more information. in ssi_test mode (mode/cmd = 40), data.0 and data.1 contain the lsw and msw (respectively) of the 32-bit ssi data used to test the ssi interface. data.0 (0x32) value description 0 C 65,535 ssi_test mode data least signifcant word table 32: data.0 register in ssi_test mode data.1 (0x33) value description 0 C 65,535 ssi_test mode data most signifcant word table 33: data.1 register in ssi_test mode
IC-TW14 ic-pmx companion chip rev a1, page 21/ 33 see diagnostic modes on page 26 for more infor- mation. registers data.2 C data.3 are not used in ssi test mode. sin_raw and cos_raw registers sin_raw and cos_raw are read-only registers con- taining the raw (un-corrected) sine and cosine values (respectively) calculated from reading the singleturn hall sensors in the ic-pmx. sin_raw (0x40), cos_raw (0x41) value description 32,767 raw sin/cos calculation values in units of 0.1 ka/m table 34: sin_raw and cos_raw registers sin_raw and cos_raw are 2s-complement values proportional to h0 C h2 and h3 C h1 repectively, as ex- plained in position of the hall sensors and sensor sig- nal processing in the ic-pmx datasheet. these values are converted to units of 0.1 ka/m using the current val- ues of the gain, temp, and vdd registers. see spec. item 801 in the ic-pmx datasheet for more information. sin and cos registers sin and cos are read-only registers containing the cor- rected sine and cosine values (respectively) calculated from reading the singleturn hall sensors in the ic-pmx. sin (0x42), cos (0x43) value description 32,767 corrected sin/cos calculation values in units of 0.1 ka/m table 35: sin and cos registers sin and cos are 2s-complement numbers calculated as sin = sin _ raw gain _ cor 16 + amp sin _ ofs _ cor 160 cos = cos _ raw + amp cos _ ofs _ cor 160 sin_ofs_res and cos_ofs_res registers sin_ofs_res and cos_ofs_res are read-only reg- isters containing the offset residue for the sin and cos values (respectively) calculated from reading the single- turn hall sensors in the ic-pmx. sin_ofs_res (0x44), cos_ofs_res (0x45) value description 32,767 sin/cos offset residue in units of 0.01 ka/m table 36: ofs_res registers sin_ofs_res and cos_ofs_res are 2s-comple- ment numbers representing the remaining offset in the sin and cos signals respectively. sin_ofs_cor and cos_ofs_cor should be adjusted so that sin_ofs_res and cos_ofs_res are as close to zero as possible. sin_ofs_res and cos_ofs_res are updated once per input cycle (magnet revolution) based on sin and cos. this implies that changes to gain_cor, sin_ofs_cor, and cos_ofs_cor do not have an immediate effect on sin_ofs_res and cos_ofs_res. the effect of updated correction val- ues occurs at the end of the input cycle following the update. sin_peak and cos_peak registers sin_peak and cos_peak are read-only registers containing the peak amplitude of the sin and cos values (respectively) calculated from reading the single- turn hall sensors in the ic-pmx. sin_peak (0x46), cos_peak (0x47) value description 0 C 65,535 sin/cos peak amplitude in units of 0.01 ka/m table 37: sin_peak and cos_peak registers sin_peak and cos_peak are positive values calcu- lated as sin _ peak = max ( sin ) ? min ( sin ) cos _ peak = max ( cos ) ? min ( cos ) over the last input cycle (magnet revolution). gain_cor should be adjusted so that the ratio of sin_peak to cos_peak is a close to 1 as possible. amp amp is a read-only register containing the vector ampli- tude of the signals from the singleturn hall sensors in the ic-pmx. amp (0x48) value description 0 C 65,535 ic-pmx singleturn hall sensor amplitude in units of 0.1 ka/m table 38: amp register amp is a 16-bit positive integer value proportional to sin 2 + cos 2 which is fltered to provide a stable value by eliminating changes less than 5%.
IC-TW14 ic-pmx companion chip rev a1, page 22/ 33 gain gain is a read-only register containing the current gain value in the ic-pmx. gain (0x49) value description 0 C 7 current ic-pmx hall amplifer gain 8 C 65,535 reserved (not used) table 39: gain register the gain value is changed by the IC-TW14 as required by application conditions when auto_gain = 1. see auto_gain on page 18 for more information. hallx_min and hallx_max registers the IC-TW14 provides 8 read-only registers that pro- vide the minimum and maximum magnetic feld strength from the four ic-pmx singleturn hall sensors since pow- er-up or the last reset (7) or clear (9) command. hallx_min/max (0x4a C 0x51) value description 32,767 ic-pmx singleturn hall magnetic feld strength in units of 0.1 ka/m table 40: hallx_min/max registers these registers are cleared (set to zero) by executing the clear command (9). see mode/cmd on page 19 . pmx_angle pmx_angle is a read-only register containing the sin- gleturn angle (in degrees) calculated from reading the singleturn hall sensors in the ic-pmx. pmx_angle (0x52) value description 0 C 359 ic-pmx singleturn hall angle 360 C 65,535 reserved (not used) table 41: pmx_angle register pmx_angle is calculated from sin and cos. pmx_st pmx_st is a read-only register containing the single- turn position (angle) (in degrees) calculated from read- ing the singleturn hall sensors in the ic-pmx and cor- rected to compensate for the offset of the wiegand sensor to the ic-pmx. pmx_st (0x53) value description 0 C 359 corrected singleturn angle 360 C 65,535 reserved (not used) table 42: pmx_st register pmx_st is calculated as pmx _ st = pmx _ angle + wofs see wofs on page 16 for more information on the wiegand misalignment value wofs. pmx_mt pmx_mt[15:0] is a read-only register which contains the least signifcant word of the 32-bit multiturn count. pmx_mt[15:0] (0x54) bits description 15:0 multiturn counter lsw (bits 15:0) table 43: pmx_mt[15:0] register pmx_mt[31:16] is a read-only register which contains the most signifcant word of the 32-bit multiturn count. pmx_mt[31:16] (0x55) bits description 15:0 multiturn counter msw (bits 31:16) table 44: pmx_mt[31:16] register at startup, the multiturn count is read via the ic-pmx from fram addresses 0x000 C 0x005 and bits 31:0 are used to initialize the multiturn counter in the IC-TW14. bits 15:0 are available in pmx_mt[15:0] and bits 31:16 are available in pmx_mt[31:16]. during operation, pmx_mt is updated by counting pmx_st revolutions. after each update, pmx_mt[5:0] is compared to ic-pmx pos[5:0], and status.mtf is set if a multiturn fault is detected. see status on page 14 and position data in period counter mode with a data processing fram in the ic-pmx datasheet for more information.
IC-TW14 ic-pmx companion chip rev a1, page 23/ 33 ssi_st ssi_st is a read-only register containing the single- turn angle (in degrees) used with the IC-TW14s ssi multiturn interface. ssi_st (0x60) value description 0 C 359 singleturn angle 360 C 65,535 reserved (not used) table 45: ssi_st register ssi_st is calculated as ssi _ st = pmx _ st ? ssi _ ofs see ssi_ofs on page 17 for more information on the external singleturn sensor offset value ssi_ofs. the number of bits of singleturn position used as sync bits over the ssi multiturn interface is determined by ssi_length and ssi_msb. see ssi multiturn interface on page 25 for more information. ssi_mt ssi_mt[15:0] is a read-only register which contains the least signifcant word of the 32-bit multiturn count used with the tw14s ssi multiturn interface. ssi_mt[15:0] (0x61) bits description 15:0 corrected multiturn counter lsw (bits 15:0) table 46: ssi_mt[15:0] register ssi_mt[31:16] is a read-only register which contains the most signifcant word of the 32-bit multiturn count. ssi_mt[31:16] (0x62) bits description 15:0 corrected multiturn counter msw (bits 31:16) table 47: ssi_mt[31:16] register at startup, the multiturn count is read via the ic-pmx from fram addresses 0x000 C 0x005 and bits 31:0 are used to initialize the multiturn counter in the IC-TW14. the tw14s multiturn counter value is corrected for the external singleturn sensors offset (ssi_ofs) and ro- tation direction (ssi_dir). bits 15:0 of this value are available in ssi_mt[15:0] and bits 31:16 are available in ssi_mt[31:16]. during operation ssi_mt is updated by counting ssi_st revolutions. the number of multiturn bits used with the ssi multiturn interface is determined by ssi_length and ssi_msb. see ssi multiturn interface on page 25 for more information. diag2_time diag2_time is a read-only register that provides the measured time from the beginning of the current ramp to the occurence of the wiegand pulse. diag2_time is only valid when mode/cmd = 2 or 3 (diagnostic mode 2 active). diag2_time (0x80) value description 0 C 65,535 wiegand pulse time (t pulse ) in sec table 48: diag2_time register diag2_ramp diag2_ramp is a read-only register that provides the measured length of the current ramp. diag2_ramp is only valid when mode/cmd = 2 or 3 (diagnostic mode 2 active). diag2_ramp (0x81) value description 0 C 65,535 current ramp duration (t ramp ) in sec table 49: diag2_ramp register diag2_vwp diag2_vwp is a read-only register that provides the scaled peak voltage of the wiegand pulse at t pulse as measured at pin vwp. diag2_vwp is only valid when mode/cmd = 2 or 3 (diagnostic mode 2 active). diag2_vwp (0x82) value description 0 C 65,535 scaled wiegand pulse voltage (v wp ) table 50: diag2_vwp register the actual wiegand pulse voltage (vwc) is calculated as vwc = vwp vwp _ factor 256 see vwp_factor on page 19 for more information. vdd vdd is a read-only register that provides the calculated IC-TW14 power supply voltage (v dd ). vdd (0x90) value description 0 C 65,535 IC-TW14 v dd in mv table 51: vdd register vdd is fltered to provide a stable value.
IC-TW14 ic-pmx companion chip rev a1, page 24/ 33 vdd_mse vdd_mse is a read-only register that provides the cal- culated mean squared error (noise) of the IC-TW14 power supply voltage (v dd ). vdd_mse (0x91) value description 0 C 65,535 IC-TW14 v dd mean squared error in mv 2 table 52: vdd_mse register the actual rms noise on v dd is calculated as noise [ mv ] = vdd _ mse temp_raw temp_raw is a read-only register that contains the raw measured adc value of the IC-TW14s temperature diode. this value is used to calculate temp. temp_raw (0x92) value description 0 C 65,535 IC-TW14 raw temperature diode adc value table 53: temp_raw register temp_raw is fltered to provide a more stable value. temp temp is a read-only register that provides the calcu- lated die temperature of the IC-TW14. temp (0x93) bits description 15:0 IC-TW14 die temperature in c table 54: temp register temp is calculated as temp = 25 + vdd 4096 temp _ raw 32 ? temp 25 temp _ slope 2048 preset pin (npre) the IC-TW14s npre input pin is used to set ssi_ofs to defne the 0 point of the multiturn data sent to the external singleturn absolute sensor via the ssi multi- turn interface. typically, the npre pin is connected to a pushbutton switch to provide this zeroing function. see electrical connections on page 10 for more information. to zero the ssi multiturn position, move the magnet to the desired 0 point of the ssi multiturn data (where the multiturn count should change) and activate the npre input for at least 50 ms. when the npre input is de-ac- tivated, ssi_ofs is set to the current value of pmx_st (see figure 2 on page 8 ) and the fram multiturn count is set to zero. the new ssi_ofs value is then saved to fram (write command) and the IC-TW14 is re-syn- chronized to the ic-pmx (resync command). see mode/cmd on page 19 for more information. the correct system 0 point is determined by the re- quirements of the external singleturn absolute sensor connected to the IC-TW14 based on the number of sync bits used. status.npre = 1 while the npre input is active. see status on page 14 for more information.
IC-TW14 ic-pmx companion chip rev a1, page 25/ 33 ssi multiturn interface the ssi multiturn interface is an ssi slave port used to transmit the multiturn absolute position calculated by the IC-TW14 to a singleturn absolute sensor such as ic-lg, ic-mhm, ic-mu, ic-mn, etc. the number of mul- titurn and synchronization bits are programmable and must be set to match the connected singleturn absolute sensor. figure 4: ssi multiturn interface pin mrdy high and status.nossi = 0 indicate that the IC-TW14 is ready to transmit its absolute position. once mrdy goes high after power-up, the singleturn absolute sensor (master) sends clock pulses to pin mcl and the IC-TW14 clocks out the multiturn data on pin mdi. a single trailing 0 is provided by the IC-TW14 as shown in figure 4 . all data is binary (not gray) coded and sent msb frst. the IC-TW14 changes the data on pin mdi after each rising edge of mcl. after the complete data packet is sent, mdi stays low until the clock pulses on mcl stop. after the clock pulses stop, mdi is set high after the ssi timeout delay. mrdy stays high until power-down unless a fault occurs. figure 5: ssi multiturn data the total length of the ssi data packet is specifed by ssi_length and the starting bit by ssi_msb. up to 31 total bits of the complete multiturn position (ssi_mt.ssi_st) can be sent. the complete multiturn position is formed by concate- nating the two ssi_mt register values with ssi_st as shown in figure 5 . ssi_st is frst converted from de- grees to a 5-bit binary number by multiplying by 32 360 so that the bits represent fractions of a revolution. thus the msb of the converted ssi_st value represents one half of a revolution, the next bit represents one quarter, etc. these bits can be used as synchronization bits by the external singleturn absolute sensor. for example, to send ssi data packets containing 16 multiturn bits and one synchronization bit to the exter- nal singleturn absolute sensor, set ssi_msb = 15 and ssi_length = 17. this case is shown in figure 5 . if the IC-TW14 is not ready to transmit data over the ssi multiturn interface (pin mrdy low and sta- tus.nossi = 1) and the master singleturn absolute sensor sends clock pulses to pin mcl, pin mdi stays high for 32 clock cycles. in this case there is no trailing 0, but a trailing 1. this trailing 1 can be used by the singleturn absolute sensor to detect invalid multiturn position data from the IC-TW14. mcl mrdy mdi ssi multiturn data 0 complete multiturn position ssi data ssi_mt [31:16] ssi_mt [15:0] ssi_msb ssi_st 32/360 ssi_length
IC-TW14 ic-pmx companion chip rev a1, page 26/ 33 diagnostic modes the IC-TW14 provides three diagnostic modes for ana- lyzing system operation and troubleshooting multiturn synchronization problems. ssi test mode ssi test mode is used to test the ssi multiturn interface by supplying known static position data which can be verifed in the external singleturn absolute sensor. to use ssi test mode, frst enter the least signifcant word of the desired test position to data.0 and the most sig- nifcant word to data.1. see data registers on page 20 for more information. for example, to test the ssi multiturn interface using the 32-bit multiturn data 0x76543210, set data.0 = 0x3210 data.1 = 0x7654 initiate ssi test mode using the ssi_test command (40). see mode/cmd on page 19 for more information. the external singleturn absolute sensor will then clock in as many of these multiturn bits as it is confgured to use starting with the most signifcant bit of data.1. because the ssi multiturn protocol requires a trailing zero after all bits are sent, it is important that the test position in data.0 and data.1 provide a zero bit at the proper position. for example, if the external singleturn absolute sensor is programmed to require 16 multiturn bits and 1 sync bit, the 18 th bit of the ssi data packet (bit 14 of data.0 in this example) must be zero, as shown in figure 6 . figure 6: ssi test example care must be taken to ensure that this requirement is fulflled, otherwise the ssi multiturn communication will fail. note that ssi test mode sets status.stop (see sta- tus on page 14 for more information). to end ssi test mode and clear status.stop, re-synchronize the IC-TW14 to the ic-pmx using the resync command (8). ssi test data ssi data data.1 data.0 1 sync bit 16 multiturn bits 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 7 6 5 4 3 2 1 0 0 bit 18 must be 0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0
IC-TW14 ic-pmx companion chip rev a1, page 27/ 33 diagnostic mode 1 diagnostic mode 1 is used to measure the wiegand pulse angle, voltage, and magnetic feld strength when a wiegand pulse occurs. diagnostic mode 1 is initiated using the diag1 command (1). see mode/cmd on page 19 for more information. see diagnostic mode 1 on page 12 for information on the serial data packet used by diagnostic mode 1. diagnostic mode 1 is most easily used via the wiegand pulse stream tab in the free IC-TW14 gui software as shown in figure 7 . figure 7: typical wiegand pulse data see magnet alignment and airgap in ic-pmx application note 2 for more information on using diag- nostic mode 1. care must be taken when using diagnostic mode 1 to ensure that the rotational speed of the magnet is low enough that all pulses are measured. since each character in a serial packet uses 10 bits, there are 14 characters in each packet, and there are 2 wiegand pulses per revolution, the theoretical maximum speed for using diagnostic mode 1 can be calculated as 9600 bits sec 1 char 10 bits 1 packet 14 chars 1 rev 2 packets 60 sec min = 2057 rpm it is recommended to use a speed well below this value for best results.
IC-TW14 ic-pmx companion chip rev a1, page 28/ 33 diagnostic mode 2 diagnostic mode 2 (mode/cmd = 2 or 3) is used to analyze current ramp operation and set the pmxbias value. initiate diagnostic mode 2 using the diag2p (2) or diag2n (3) commands. see mode/cmd on page 19 for more information. diagnostic mode 2 is most easily used via the current ramp tab in the free IC-TW14 gui software as shown in figure 8 . figure 8: typical wiegand pulse data see pmx bias and current ramp parameters in ic-pmx application note 2 for more information on using diagnostic mode 2. diagnostic mode 2 sets status.stop. to clear this condition, re-synchronize the IC-TW14 using the resync command (8). direct fram access the IC-TW14 contains an fram block address regis- ter, four fram data registers, and fve additional com- mands which are used to directly access the fram connected to the ic-pmx for diagnostics or storage of user data. fram_block fram_block is a read/write register used to specify the block address for reading data from or writing data to the fram using the f_data_w (21) and f_data_r (22) commands. see direct fram access commands on page 29 for more information. fram_block (0x31) bits description 15:8 reserved (must be 0) 7:0 fram address/ 8 table 55: fram block address register data in the fram is accessed in 8-byte blocks. this provides effcient use of the ic-pmx to fram commu- nication channel while still permitting wiegand pulse processing. fram_block specifes the starting loca- tion of the desired data block and is calculated as fram _ block = fram address 8 for example, to access the block of fram data starting at address 0x40, set fram_block = 0x0008. data registers data.0 C data.3 are read/write registers used to hold the data being written to or read from the fram using commands 21 C 25. the data stored in these registers is different depending on the specifc command used. see direct fram access commands on page 29 for more information. the 8 byte block of fram data used by the f_data_w (21) and f_data_r (22) commands is stored in data.0 C data.3 as shown in table 56 .
IC-TW14 ic-pmx companion chip rev a1, page 29/ 33 data.0 C data.3 (0x32 C 0x35) register bits description data.0 15:8 data to or from (8 fram_block + 1) 7:0 data to or from (8 fram_block) data.1 15:8 data to or from (8 fram_block + 3) 7:0 data to or from (8 fram_block + 2) data.2 15:8 data to or from (8 fram_block + 5) 7:0 data to or from (8 fram_block + 4) data.3 15:8 data to or from (8 fram_block + 7) 7:0 data to or from (8 fram_block + 6) table 56: registers data.0 C data.3 as fram data registers the 6 bytes of fram multiturn position data used by the f_mt_w (23) and f_mt_r (24) commands are stored in data.0 C data.2 as shown in table 57 . data.0 C data.2 (0x32 C 0x34) register bits description data.0 15:8 data to or from fram address 0x001 7:0 data to or from fram address 0x000 data.1 15:8 data to or from fram address 0x003 7:0 data to or from fram address 0x002 data.2 15:8 data to or from fram address 0x005 7:0 data to or from fram address 0x004 table 57: registers data.0 C data.2 as fram multiturn position registers registers fram_block and data.3 are not used with the f_mt_w (23) and f_mt_r (24) commands. the 32-bit multiturn position used to set the fram mul- titurn position using the f_set_mt command (25) is stored in these registers as shown in table 58 . data.0 C data.1 (0x32 C 0x33) register bits description data.0 15:8 fram counter(15) C counter(8) 7:0 fram counter(7) C counter(0) data.1 15:8 fram counter(31) C counter(24) 7:0 fram counter(23) C counter(16) table 58: registers data.0 C data.1 as fram multiturn position set registers see memory map for pos0/1/2/3 in the fram datasheet for more information on the fram counter registers. registers fram_block, data.2, and data.3 are not used with the f_set_mt command. direct fram access commands the fve additional commands used for direct fram access, along with the fram address range that can be accessed with each command, are shown in table 59 . mode/cmd (0x30) command value fram addresses f_data_w 21 0x008 C 0x7ff f_data_r 22 0x008 C 0x7ff f_mt_w 23 0x000 C 0x005 f_mt_r 24 f_set_mt 25 0x000 C 0x005 table 59: mode/cmd register to execute a command, write the appropriate value to the mode/command register. when any of the fram read or write commands is complete, mode/cmd is set to normal (0) by the IC-TW14. the f_data_w command (21) is used to write confg- uration or user data to the fram as shown in table 60 . memory map for f_data_w and f_data_r commands IC-TW14 fram name address addresses fram_block user data C 0x008 C 0x01f 1 C 3 pramp 0x10 0x020 C 0x021 4 nramp 0x11 0x022 C 0x023 pmxwi 0x12 0x024 C 0x025 pmxbias 0x13 0x026 C 0x027 pmxgain 0x14 0x028 C 0x029 5 wofs 0x15 0x02a C 0x02b ssi_ofs 0x16 0x02c C 0x02d ssi_dir 0x17 0x02e C 0x02f ssi_length 0x18 0x030 C 0x031 6 ssi_msb 0x19 0x032 C 0x033 sin_ofs_cor 0x1a 0x034 C 0x035 cos_ofs_cor 0x1b 0x036 C 0x037 gain_cor 0x1c 0x038 C 0x039 7 auto_gain 0x1d 0x03a C 0x03b amp_mag_loss 0x1e 0x03c C 0x03d temp25 0x1f 0x03e C 0x03f temp_slope 0x20 0x040 C 0x041 8 vwp_factor 0x21 0x042 C 0x043 reserved C 0x044 C 0x045 reserved C 0x046 C 0x047 user data C 0x048 C 0x7ff 9 C 0xff table 60: memory map for fram data read/write commands this command writes the 8 bytes of data in data.0 C data.3 directly to the fram starting at address 8 fram_block using fram feedthrough mode in the ic-pmx and the fram write command (op-code 0x02). see fram access in the ic-pmx datasheet and command ? read in the fram datasheet for more information. when the write is complete, the IC-TW14 sets mode/cmd to normal (0). for example, to write the 8 bytes 0x1f, 0x2e, 0x3d, 0x4c, 0x5b, 0x6a, 0x79, and 0x88 to fram addresses 0x050 C 0x057, set fram_block = 0x000a (0x050/8),
IC-TW14 ic-pmx companion chip rev a1, page 30/ 33 set the data registers as shown in table 61 , and write 0x0015 (21) to the mode/cmd register. f_data_w example register bits data fram address data.0 15:8 0x2e 0x051 7:0 0x1f 0x050 data.1 1:8 0x4c 0x053 7:0 0x3d 0x052 data.2 15:8 0x6a 0x055 7:0 0x5b 0x054 data.3 15:8 0x88 0x057 7:0 0x79 0x056 table 61: fram data write example when the write is complete, the IC-TW14 sets mode/- cmd to normal (0) and the contents of fram ad- dresses 0x0050 C 0x057 are as shown in table 61 . if the f_data_w command cannot be executed, possi- bly due to an illegal address specifed in fram_block, status.fad is set. see status on page 14 for more inforation. do not use this command to write the multiturn position (fram addresses 0x000 C 0x005). this means that fram_block cannot be zero. the f_data_r command (22) is used to read IC-TW14 confguration and user data from the fram as shown in table 60 . this command reads the 8 byte block of data starting from fram address 8 fram_block and stores the results in data.0 C data.3 using fram feedthrough mode in the ic-pmx and the fram read com- mand (op-code 0x03). see fram access in the ic-pmx datasheet and command ? read in the fram datasheet for more information. when the read is complete, the IC-TW14 sets mode/cmd to 0 (nor- mal operation). for example, to read the 8 bytes of data from fram ad- dresses 0x050 C 0x057, set fram_block = 0x000a (0x050/8) and write 0x0016 (22) to the mode/cmd register. when mode/cmd = 0, the fram access is done and the data is available in data.0 C data.3 as shown in table 62 (assuming that the fram data write command example shown earlier had been previously executed). f_data_r example fram address data register bits 0x051 0x2e data.0 15:8 0x050 0x1f 7:0 0x053 0x4c data.1 15:8 0x052 0x3d 7:0 0x055 0x6a data.2 15:8 0x054 0x5b 7:0 0x057 0x88 data.3 15:8 0x056 0x79 7:0 table 62: fram data read example if the f_data_r command cannot be executed, possi- bly due to an illegal address specifed in fram_block, status.fad is set. see status on page 14 for more inforation. do not use this command to read the multiturn position (fram addresses 0x000 C 0x005). this means that fram_block cannot be zero. the f_mt_w command (23) is used to directly write the fram multiturn position, which is specially encoded in the fram. this command writes the 6 bytes of data in data.0 C data.2 to fram addresses 0x000 C 0x005 with special encoding using fram feedthrough mode in the ic-pmx and the fram wrtss command (op-code 0x3f). see fram access in the ic-pmx datasheet and command ? wrtss in the fram datasheet for more information. when the write is complete, the IC-TW14 sets mode/cmd to 0 (normal operation). for example, to write the value 0x0123,4567,89ab to fram addresses 0x00 C 0x05, set data.0 C data.2 as shown in table 63 and write 0x0017 (23) to the mode/- cmd register. when the write is complete, the IC-TW14 sets mode/cmd to normal (0). f_mt_w example register bits data fram address data.0 15:8 0x89 0x001 7:0 0xab 0x000 data.1 15:8 0x45 0x003 7:0 0x67 0x002 data.2 15:8 0x01 0x005 7:0 0x23 0x004 table 63: fram multiturn position write example the f_mt_r command (24) is used to directly read the fram multiturn position, which is specially encoded in the fram. this command reads the 6 bytes of data at fram addresses 0x000 C 0x005 with special encoding using fram feedthrough mode in the ic-pmx and the fram rdtss command (op-code 0x38) and stores the result in data.0 C data.2. see fram access in the ic-pmx datasheet and command ? rdtss in
IC-TW14 ic-pmx companion chip rev a1, page 31/ 33 the fram datasheet for more information. when the read is complete, the IC-TW14 sets mode/cmd to 0 (normal operation). for example,to read the 6 bytes of multiturn position data from the fram, write 0x0018 (24) to the mode/- cmd register. when mode/cmd = 0, the fram ac- cess is done and the data is available in data.0 C data.2 as shown in table 64 (assuming that the fram multiturn position write command example shown ear- lier had been previously executed and no wiegand pulses have occurred in the meantime). f_mt_r example fram address data register bits 0x001 0x89 data.0 15:8 0x000 0xab 7:0 0x003 0x45 data.1 15:8 0x002 0x67 7:0 0x005 0x01 data.2 15:8 0x004 0x23 7:0 table 64: fram multiturn position read example the f_set_mt command (25) is used to set the fram multiturn position to a specifc value. this command writes the 32-bit multiturn position in data.0 C data.1 to fram addresses 0x000 C 0x005 with special en- coding using fram feedthrough mode in the ic-pmx and the fram wrtss command (op-code 0x3f). the existing values of pp (fram address 0x000 bit 0) and dir (fram address 0x000 bit 1) are preserved (not affected) and dir (fram address 0x005 bit 5) is made equal to dir (fram address 0x000 bit 1). eflag (fram address 0x005 bits 7:6) and fram counter bits 32:42 (fram address 0x004 bit 2 C fram address 0x005 bit 4) are reset to zero. see fram access in the ic-pmx datasheet and memory map for pos0/1/2/3 in the fram datasheet for more information. when the command is complete, the IC-TW14 sets mode/cmd to normal (0). for example, to set the fram multiturn position to 0x0123,4567, set data.0 C data.1 as shown table 65 and write 0x0019 (25) to the mode/cmd register. this sets the multiturn position without affecting the pp and dir bits to allow proper turns counting after etting the multiturn position. when the command is complete, the IC-TW14 sets mode/cmd to normal (0). f_set_mt example register bits data fram bits data.0 15:8 0x45 counter(15:8) 7:0 0x67 counter(7:0) data.1 15:8 0x01 counter(31:24) 7:0 0x23 counter(23:16) table 65: set fram multiturn position example
IC-TW14 ic-pmx companion chip rev a1, page 32/ 33 revision history rel. rel. date ? chapter modifcation page a0.8 16-04-15 confdental release of the brief descr. rel. rel. date ? chapter modifcation page a1 16-06-17 confdental release of the target specifcation copying C even as an excerpt C is only permitted with ic-haus approval in writing and precise reference to source. ic-haus does not warrant the accuracy, completeness or timeliness of the specifcation and does not assume liability for any errors or omissions in these materials. the data specifed is intended solely for the purpose of product description. no representations or warranties, either express or implied, of merchantability, ftness for a particular purpose or of any other nature are made hereunder with respect to information/specifcation or the products to which information refers and no guarantee with respect to compliance to the intended use is given. in particular, this also applies to the stated possible applications or areas of applications of the product. ic-haus products are not designed for and must not be used in connection with any applications where the failure of such products would reasonably be expected to result in signifcant personal injury or death (safety-critical applications) without ic-haus specifc written consent. safety-critical applications include, without limitation, life support devices and systems. ic-haus products are not designed nor intended for use in military or aerospace applications or environments or in automotive applications unless specifcally designated for such use by ic-haus. ic-haus conveys no patent, copyright, mask work right or other trade mark right to this product. ic-haus assumes no liability for any patent and/or other trade mark rights of a third party resulting from processing or handling of the product and/or any other use of the product. ? release date format: yyyy-mm-dd
IC-TW14 ic-pmx companion chip rev a1, page 33/ 33 ordering information type package order designation IC-TW14 qfn24 IC-TW14 qfn24-4x4 please send your purchase orders to our order handling team: fax: +49 (0) 61 35 - 92 92 - 692 e-mail: dispo@ichaus.com for technical support, information about prices and terms of delivery please contact: ic-haus gmbh tel.: +49 (0) 61 35 - 92 92 - 0 am kuemmerling 18 fax: +49 (0) 61 35 - 92 92 - 192 d-55294 bodenheim web: http://www.ichaus.com germany e-mail: sales@ichaus.com


▲Up To Search▲   

 
Price & Availability of IC-TW14

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X